#include <errno.h>
int is_brr(int pid) {
        long __res;
        __asm__ volatile (
        "movl $243, %%eax;"
        "movl %1, %%ebx;"
        "int $0x80;"
        "movl %%eax,%0"
        : "=m" (__res)
        : "m" (pid)
        : "%eax","%ebx"
        );
                if ((unsigned long)(__res) >= (unsigned long)(-125)) {
        errno = -(__res);
        __res = -1;
        }
        return (int)(__res);
}

